<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>主页</title>
</head>
<body>
<h1>登录</h1>
<hr>
<h2>
    <div th:text="${msg}" style="color: red"></div>
    <form th:action="@{/login}">
        账号:<input type="text" name="username">
        <br>
        密码:<input type="password" name="password">
        <br>
        <button type="submit">点击登录</button>
    </form>
</h2>
</body>
</html>
